package com.demo.model.rest;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Min;

/**
 * Created by hardy
 * 2018/6/13 下午2:32
 */
@Data
@ToString
public class UserRest {

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("年龄")
    @Min(value = 1)
    private int age;
}
